<template>
  <div>
    <template>
      <a-card>
        <a-tabs default-active-key="1" @change="callback">
          <a-tab-pane key="1" :tab="$t('all.autotext754')" v-if="$auth('ORGANIZATION.ORGANIZATION_COM')"><SponsorTab /></a-tab-pane>
          <a-tab-pane key="2" :tab="$t('all.autotext163')" v-if="$auth('ORGANIZATION.ORGANIZATION_HOS')"><SiteTab /></a-tab-pane>
          <!-- <a-tab-pane key="3" tab="机构管理组织(SMO)"><SmoTab /></a-tab-pane>
          <a-tab-pane key="4" tab="合同研究组织(CRO)"><CroTab /></a-tab-pane> -->
        </a-tabs>
      </a-card>
    </template>
  </div>
</template>
<script>
import SponsorTab from './components/SponsorTab'
import SiteTab from './components/SiteTab'
// import SmoTab from './components/SmoTab'
// import CroTab from './components/CroTab'
export default {
  components: {
    SponsorTab,
    SiteTab
    // SmoTab,
    // CroTab
  },
  data () {
    return {
      activeIndex: 0
    }
  },
  methods: {
    // 用于切换状态的
    callback (key) {
      this.activeIndex = parseInt(key)
    }
  },
  mounted () {}
}
</script>
<style></style>
